<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri= "http://java.sun.com/jsp/jstl/fmt" prefix= "fmt" %>
<%@ include file="/inc/css.inc"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>大讲堂进行中</title>
		<link rel="stylesheet" href="${css}/amazeui.css" />
		<link rel="stylesheet" href="${css}/classroom.css" />
		<script src="${js}/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="${js}/amazeui.doctorclass.js" ></script>
	</head>
	<script type="text/javascript">
		$(function(){
			var cookieVal = localStorage.patientid;  //获取 local storage 
			if( typeof (cookieVal)  ==  "undefined" || cookieVal ==  undefined){
				window.location.href = "<%=basePath%>web/enrollment/joyin/letter.jsp?a=selectStartSyllabus";
			}
		});
	</script>
	<body>
		
		<div class="box">
			<div id="listdata" class="am-panel-default itembox">
			<c:if test="${empty syllabusList}">
				<div class="nullbox">
					<div class="nulltext">
						暂时没有进行中的大讲堂
						<br>
						请查看大讲堂课程表获取最新课程信息
					</div>
					<div class="nullbtn">
						<a href="slectCourseList.action?&&syllabusType=0"><button type="submit" class="am-btn am-btn-primary am-radius">查看课程表</button></a>
					</div>
				</div>
			</c:if>
			<c:forEach items="${syllabusList}" var="s">
				<a href="selectSyllabus.action?id=${s.id}&&syllabusType=0"/>
				    <div class="am-panel-bd carditem">
				    	<div class="itemtitle">${s.doctorName}老师的讲堂正在开课</div>
				    	<div class="am-g am-g-collapse cardtime">
						  <div class="am-u-sm-2">主题:</div>
						  <div class="am-u-sm-10">${s.syllabusName}</div>
						</div>
						<div class="am-g am-g-collapse cardname">
						  <div class="am-u-sm-2">时间:</div>
						  <div class="am-u-sm-10"><fmt:formatDate value="${s.auditoriumStartTime}" type="both" pattern="yyyy-MM-dd HH:mm"/></div>
						</div>
				    </div>
			    </a>
			    
			</c:forEach>
			</div>
		</div>
		<script src="//cdn.bootcss.com/dot/1.1.0/doT.min.js"></script>
		<script>
			
		</script>
	</body>
</html>
